$(function(){
   var data = {
		method: "GET",
		url: path+'/notice',
		columns: [
			{field:'checked',checkbox:true},
			{field:'noticeId',visible:false},
			{field:'noticeTheme',title:'发布主题'},
			{field:'noticePeople',title:'发布人'},
			{field:'noticeDate',title:'发布时间'}
		],	
		 sortable: true,
         sortOrder: "asc",
         search: false
   }
   
   var param = [{text:"发布人",name:"noticePeople",type:"text",verify:"chineseStr"},{text:"时间",name:"dateScope",type:"text",verify:""}];
   
   createQueryPanel(param);
   
   renderTable(cTable,data);
   
   //日期范围
   laydate.render({
     elem: '[name="dateScope"]'
     ,range: true
   });
   
   form.render();
})

$("#add_btn").click(function(){
	openOperateWindow({
		title: "发布新公告",
		width: "65%",
		height: "55%",
		url: "/admin/systemManagement/noticeManagement/notice-add.jsp"
	})
})

$("#remove_btn").click(function(){
	requestRemoveData("noticeId","/notice");
});

$("#modify_btn").click(function(){
	openOperateWindow({
		title: "修改发布内容",
		isUpdate: true,
		width: "65%",
		height: "70%",
		url: "/admin/systemManagement/noticeManagement/notice-update.jsp"
	})
})
